package sprite;

import java.awt.Color;
import java.util.LinkedList;

public class TetroSquare extends Tetromino {

	public TetroSquare(int x, int y, int width, int height) {
	  super(width, height);
	
	  initializeTetrominoGrid(width, height);
	  
	  setPointX(x);
	  setPointY(y);
	  		
		Tetrobox _0_0 = new Tetrobox(0, 0, width, height);
		Tetrobox _1_0 = new Tetrobox(1, 0, width, height);
		Tetrobox _0_1 = new Tetrobox(0, 1, width, height);
		Tetrobox _1_1 = new Tetrobox(1, 1, width, height);
		
		_0_0.setColors(Color.red, Color.gray, Color.pink);
		_1_0.setColors(Color.red, Color.gray, Color.pink);
		_0_1.setColors(Color.red, Color.gray, Color.pink);
		_1_1.setColors(Color.red, Color.gray, Color.pink);
		
		Tetrobox[][] box = getTetros();
		
		box[0][0] = _0_0;
		box[1][0] = _1_0;
		box[0][1] = _0_1;
		box[1][1] = _1_1;
		
		setTetroHeight(2);
		setTetroWidth(2);
		
	  LinkedList<Tetrobox[][]> rotations = new LinkedList<Tetrobox[][]>();
	  rotations.add(box);
	  setRotations(rotations);	
		
		this.setTetros(box);
	}
	
}
